package com.fr.report.web.ui.impl.form;

import com.fr.base.ArrayUtils;
import com.fr.base.core.util.TemplateUtils;
import com.fr.report.js.JavaScriptImpl;
import com.fr.report.web.event.ActionUtils;
import com.fr.report.web.event.Listener;
import com.fr.report.web.ui.Button;
import com.fr.web.Repository;

public class FormSubmitButton extends Button
{
  public FormSubmitButton()
  {
  }

  public FormSubmitButton(String paramString)
  {
    super(paramString);
  }

  public Listener[] createListeners(Repository paramRepository)
  {
    return ((Listener[])ArrayUtils.addAll(super.createListeners(paramRepository), new Listener[] { new Listener("click", new JavaScriptImpl(ActionUtils.getDisableAction())), new Listener("click", new JavaScriptImpl(TemplateUtils.readTemplate2String("/com/fr/report/web/ui/impl/form/formsubmitbutton.tpl", "GBK"))) }));
  }

  public boolean equals(Object paramObject)
  {
    return ((paramObject instanceof FormSubmitButton) && (super.equals(paramObject)));
  }
}